﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BlackBBS.Infrastructure.Repository
{
    public interface IRepository<T> : IDisposable where T : IRepositoryEntity
    {
        long Count();
        bool Delete(long key);
        void Open();
        void Close();
        T Get(long key);
        IEnumerable<T> GetAll();
        long NextId();
        void Save(T entity);
    }
}
